home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 2000
/
MacHack 2000.toast
/
pc
/
The Hacks
/
Softshoe
/
Lisa's Mac Parts
/
Processes
/
ProcessLoop.h
< prev
Wrap
Text File
|
2000-06-23
|
646b
|
35 lines
// ProcessLoop.h
#ifndef ProcessLoop_h
#define ProcessLoop_h
#ifndef Process_h
#include "Process.h"
#endif
#ifndef Assert_h
#include "Assert.h"
#endif
class ProcessLoop
{
private:
Process process;
bool finished;
static const ProcessSerialNumber noProcess;
public:
ProcessLoop();
bool Finished() const { return finished; }
bool Unfinished() const { return !finished; }
void operator++();
void operator++( int ) { operator++(); }
const Process& operator*() const { Assert( !finished ); return process; }
const Process *operator->() const { Assert( !finished ); return &process; }
};
#endif